package com.itheima.health.dao;


import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;

/**
 * @author zhangmeng
 * @description 检查组DAO
 * @date 2019/9/18
 **/


@Mapper
public interface OrderSettingDao {

    //对象类型不用加@Param注解
void add(OrderSetting orderSetting);
void update(@Param("id")Integer id,@Param("number")Integer number);
OrderSetting select(@Param("orderDate") Date orderDate);





    void updateReservationsById(@Param("id") Integer id, @Param("reservations") int reservations);


    List<OrderSetting> selectOrderSettingByMonth(@Param("startDate") String startDate, @Param("endDate") String endDate);

    void updateNumberByDate(@Param("id") Integer id, @Param("number") Integer number);

    OrderSetting selectByOrderDate(@Param("orderDate") Date orderDate);





}
